package com.huanong.it.xwuser;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.session.data.redis.RedisFlushMode;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
@ComponentScan("com.huanong.it")
@EnableFeignClients("com.huanong.it.xwcommon.service")
@MapperScans({
        @MapperScan("com.huanong.it.xwcommon.mapper"),
        @MapperScan("com.huanong.it.xwuser.mapper"),
        @MapperScan("com.huanong.it.xwuser.authority.mapper"),
})
@EnableDiscoveryClient
@RefreshScope

//@EnableRedisHttpSession(redisFlushMode = RedisFlushMode.ON_SAVE)
public class XwUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(XwUserApplication.class, args);
    }

}
